package senior.StringTest1;

import java.util.Scanner;

/**
 * 1:输入一个字符串，去掉非数字字符，把剩下的转换乘整数，并输出，比如AbcF2FHk30%$!,则结果是230
 * @author shkstart
 * @creat 2022-04-13:02
 */
public class Work1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个字符串：");
        String s1 = sc.next();
        s1=s1.replaceAll("\\D+","");
        int i = Integer.parseInt(s1);
        System.out.println(i);

    }
}
